<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // 关于 React this 指向的问题的解析
    class Person{
        handleClick(){
            console.log(this);
        }
        aClick = (params) => {
            console.log(this);
        }
    }
    // <div onClick={this.handleCLick}></div>
    let p = new Person();
    let handleClick = p.handleClick;
    handleClick();// undefined
    let aClick = p.aClick;
    aClick();// Person 
    
</script>
</html>